package bus;

import java.util.List;

import dao.SettingDAO;
import dto.SettingDTO;

public class SettingBUS {
	public SettingDTO info = new SettingDTO();
	public SettingDAO data = new SettingDAO(null);
	
	public void setInfo(SettingDTO setting) {
		this.info = setting;
	}
	
	public SettingDTO getInfo() {
		return this.info;
	}
	
	public void addSetting() {
		data.addSetting(info);
	}
	
	public List<SettingDTO> getAllSettings(){
		return data.getAllSettings();
	}
	
	public boolean updateSetting(){
		return data.updateSetting(info);
	}
	
	public void deleteSetting(){
		data.deleteSetting(info);
	}
	
	public void deleteAllSettings(){
		data.deleteAllSettings();
	}
	
	public int getSettingCount(){
		return data.getSettingCount();
	}
}